package br.com.sipsoft.svola.factory;

import javax.persistence.Query;

import org.springframework.stereotype.Repository;

@Repository
public class DirfFactory extends BaseFactory {

	public void deleteAll(){
		try {
			
			hibernateUtils.beginTransaction();		
			Query q = hibernateUtils.getCurrentEntityManager().createQuery("delete from ResultDirf ");
			q.executeUpdate();
			
			hibernateUtils.commitTransaction();
			
		} catch (Exception e) {
			hibernateUtils.rollbackTransaction();
		}				
	}
}
